package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketOrder;
import com.cskaoyan.bean.MarketOrderExample;
import com.cskaoyan.model.admin.vo.OrderDetailVo;
import com.cskaoyan.model.admin.vo.RowsEntityOfStatOrderRespVO;
import com.cskaoyan.model.vx.vo.WxOrderDetailVo;
import com.cskaoyan.model.vx.vo.WxOrderListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketOrderMapper {
    long countByExample(MarketOrderExample example);

    int deleteByExample(MarketOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrder record);

    int insertSelective(MarketOrder record);

    List<MarketOrder> selectByExample(MarketOrderExample example);

    MarketOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByExample(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByPrimaryKeySelective(MarketOrder record);

    int updateByPrimaryKey(MarketOrder record);

    List<RowsEntityOfStatOrderRespVO> selectStatOrder();

    List<MarketOrder> selectList();

//    OrderDetailVo selectOrderDetail(Integer id);

    List<WxOrderListVo> selectByExampleWOL(MarketOrderExample marketOrderExample);

    WxOrderDetailVo.OrderInfoBean selectByPrimaryKey2(Integer orderId);

    int updateDeleted(Integer orderId);

    int selectGoodsIdByprimaryKey2(int orderGoodsId);
}